package com.gxa.hualianeshop.common.exception;


import com.gxa.hualianeshop.common.base.ResultCode;

/**
 * @projectName: epidemic_situation
 * @package: com.cn.gxa.epidemic_situation.commn.result
 * @className: ApplicationException
 * @author: laoda
 * @description: TODO
 * @date: 2022/4/21 11:12
 * @version: 1.0
 */

public class BizException extends  RuntimeException{

    private ResultCode resultCode;

    public ResultCode getExceptionCode() {
        return resultCode;
    }

    public BizException(ResultCode exceptionCode){
        super(exceptionCode.getMessage());
        this.resultCode = exceptionCode;
    }
}

